Please Sign In
var userId = unscramble(client.userId)
var bucket = project.sharedConnections.connections[userId]
var connection = bucket.connection
cursor = connection.cursor("select * from customer order by ID");
// Dynamically create a table of all customers so they may pick their
// names from a list to sign in.
while(cursor.next()) {
}
Customers by ID
Click on an ID to identify yourself
ID |
Name |
Telephone |
/* The following statement constructs a link that will send the user
to "rent.htm", which will process their request to rent a video.
Notice that the customer ID's are added to the URL as a parameter after
the '?' so that rent.htm can see that parameter as a request property
when the user clicks on a particular link.
*/
write(cursor.id);
|
write(cursor.name); |
write(cursor.phone); |